Home Posts About

Macbook 电池充电控制软件:替代 Aldente

MacOS虽然好用,但是其电池问题是一件另人烦恼的问题,知乎上搜一搜有很多的相关问题及回答。

在众多的回答中都提到了 Aldente 这款软件,它是 MacOS 上的一款进行电量充电控制的软件。当电池电量达到 设定的限值时关闭充电,当电量低于设定的限值时,启动充电。

Aldenet 这款软件是收费软件,这里提供一个适用于 Apple Silicon (Intel 的还是得用 Aldente)的开源软件 actuallymentor/battery: CLI for managing the battery charging status for M1 Macs

通过 Homebrew 安装带界面的版本或者通过以下的方式安装终端版本。

我本人用的是终端版本,带界面的版本会在菜单栏另外显示一个电池图标,我不需要。

curl -s https://raw.githubusercontent.com/actuallymentor/battery/main/setup.sh | bash

安装完之后通过在终端中运行下面的命令来开启限制充电,当电池电量达到 80% 时就停止充电。更多相关的命令使用 –help 查看。

battery maintain 80
battery --help

Created with Emacs 29.1.50 (Org mode 9.6.8) on MacOS Updated: 2023-06-05 Mon 17:00